package com.umpay.dto.merAccess.req.consume;

import org.hibernate.validator.constraints.NotEmpty;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merAccess.req.CommonReq;

	/**
	 * @ClassName: ConsumeScancodeMainReq  
	 * @Description: 扫码主扫请求类
	 * @author liuhaidong  
	 * @date  2018-3-23
	 */
	public class ConsumeScancodeMainReq extends CommonReq{
		
		@NotEmpty(message = "后台通知地址不能为空")	
		@Pattern(message = "后台通知地址格式不正确")
		private String notify_url;
		@NotEmpty(message = "交易号不能为空")		
		@Pattern(message = "交易号格式不正确")
		private String trade_no;	//联动交易号
		@NotEmpty(message = "支付交易流水号不能为空")		
		@Pattern(message = "支付交易流水号格式不正确")
		private String mer_trace;	//支付交易流水
		@NotEmpty(message = "支付类型不能为空")		
		@Pattern(message = "支付类型格式不正确")
		private String pay_type;	//支付方式
		@NotEmpty(message = "金额不能为空")		
		@Pattern(message = "金额格式不正确")
		private String amount;	//金额
		@Pattern(message = "二维码有效期格式不正确")
		private String expire_time;	//二维码有效期
		@Pattern(message = "备注信息格式不正确")
		private String remark;	//备注信息
		
		
		public String getNotify_url() {
			return notify_url;
		}

		public void setNotify_url(String notify_url) {
			this.notify_url = notify_url;
		}
		public String getTrade_no() {
			return trade_no;
		}
		public void setTrade_no(String trade_no) {
			this.trade_no = trade_no;
		}
		public String getMer_trace() {
			return mer_trace;
		}
		public void setMer_trace(String mer_trace) {
			this.mer_trace = mer_trace;
		}
		public String getPay_type() {
			return pay_type;
		}
		public void setPay_type(String pay_type) {
			this.pay_type = pay_type;
		}
		public String getAmount() {
			return amount;
		}
		public void setAmount(String amount) {
			this.amount = amount;
		}
		public String getExpire_time() {
			return expire_time;
		}
		public void setExpire_time(String expire_time) {
			this.expire_time = expire_time;
		}
		public String getRemark() {
			return remark;
		}
		public void setRemark(String remark) {
			this.remark = remark;
		}

		@Override
		public String toString() {
			return "ConsumeScancodeMainReq [notify_url=" + notify_url + ", trade_no=" + trade_no + ", mer_trace="
					+ mer_trace + ", pay_type=" + pay_type + ", amount=" + amount + ", expair_time=" + expire_time
					+ ", remark=" + remark + ", mer_id=" + mer_id + ", version=" + version + "]";
		}
		
	
	}
		